package com.schoolegard.services;

import java.util.List;

import com.schoolgard.entitybean.CardLogToDevice;
import com.schoolgard.entitybean.PictureLogToDevice;
import com.schoolgard.entitybean.TimingToDevice;


public interface RemoteOperatorService {
	
	/**
	 * 查找刷卡数据获取任务表
	 * @return
	 */
	public List<CardLogToDevice> findCardToDevice();
	
	/**
	 * 查找所有照片文件上传任务表数据
	 * @return
	 */
	public List<PictureLogToDevice> findPictureLogToDevice();
	
	/**
	 * 查找所有时间同步任务
	 * @return
	 */
	public List<TimingToDevice> findTimingToDevice();
	
	/**
	 * 删除记录
	 * @param pictureId
	 */
	public void deletePictureTd(Long pictureId);
	/**
	 * 删除记录
	 * @param cardId
	 */
	public void deleteCardTd(Long cardId);
	/**
	 * 删除记录
	 * @param timingId
	 */
	public void deleteTimingTd(Long timingId);
	
	/**
	 * 查找单条记录
	 * @param cardId
	 * @return
	 */
	public CardLogToDevice findCardById(Long cardId);
	/**
	 * 查找单条记录
	 * @param timingId
	 * @return
	 */
	public TimingToDevice findTimingById(Long timingId);
	/**
	 * 查找单条记录
	 * @param pictureId
	 * @return
	 */
	public PictureLogToDevice findPictureById(Long pictureId);
	
	/**
	 * 保存CardLogToDevice
	 * @param cardtd
	 */
	public void saveOrUpdateCardTd(CardLogToDevice cardtd);
	/**
	 * 保存CardLogToDevice
	 * @param timingtd
	 */
	public void saveOrUpdateTimingTd(TimingToDevice timingtd);
	/**
	 * 保存PictureLogToDevice
	 * @param picturetd
	 */
	public void saveOrUpdatePictureTd(PictureLogToDevice picturetd);

	public void saveCardAll(List<CardLogToDevice> ctds);
	public void savePicAll(List<PictureLogToDevice> ctds);
	public void saveTimeAll(List<TimingToDevice> ctds);
	
}
